<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>bootstrap</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body>

<!-- <div class="dropdown">
    <button class="btn btn-info" data-toggle="dropdown">按钮</button>
    <ul class="dropdown-menu">
        <li>1</li>
        <li>2</li>
        <li>3</li>
    </ul>
</div>

<div class="alert alert-warning alert-dismissible" >
    <button  class="close" data-dismiss="alert"><span>&times;</span></button>
    <strong>Warning!</strong> Better check yourself, you're not looking too good.
</div> -->


<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
    Launch demo modal
</button>
<div class="modal fade"  id="myModal">
<div class="modal-dialog modal-md">
    <div class="modal-content">
    <div class="modal-header">
        <button  class="close" data-dismiss="modal" ><span >&times;</span></button>
        <h4 class="modal-title">Modal title</h4>
    </div>
    <div class="modal-body">
        <p>One fine body&hellip;</p>
    </div>
    <div class="modal-footer">
        <button  class="btn btn-default" data-dismiss="modal">Close</button>
        <button  class="btn btn-primary">Save changes</button>
    </div>
    </div>
</div>
</div>
<script src="js/jquery-3.6.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
$(function(){
    // $(document).off(".data-api");  关闭全部
    // $(document).off(".alert.data-api");
    // $(document).off(".dropdown.data-api");
})


</script>

</body>
</html>